﻿using System.Collections;
using System.Collections.Generic;
using Syncfusion.Pdf;

namespace PdfSdk.Pdf
{
    public class PdfPageBaseWrapper : ObjectWrapper
    {
        public PdfPageBaseWrapper(PdfPageBase obj) : base(obj)
        {
        }

        public PdfDictionaryWrapper Dictionary
        {
            get
            {
                var obj = GetPropertyValue();
                if (obj == null)
                    return null;
                return new PdfDictionaryWrapper(obj);
            }
        }
    }
    public class PdfArrayWrapper : ObjectWrapper, IPdfPrimitiveWrapper
    {
        public PdfArrayWrapper(object obj) : base(obj)
        {
        }

        public PdfPrimitiveListWrapper Elements => GetPropertyValue() is IList list ? new PdfPrimitiveListWrapper(list) : null;
    }
}
